import { lazy } from "react"
import Home from "../views/home"

const routes = [
    {
        path:'/home',
        name:'/',
        til:'Home',
        element:Home,
        hidden:false,
    },
    {
        path:'/revenue',
        name:'/revenue',
        til:'revenue',
        element:lazy(()=>import('../views/cash_income')),
        hidden:false,
    },
    {
        path:'/coins',
        name:'/coins',
        til:'coins',
        element:lazy(()=>import('../views/transaction_currency')),
        hidden:false,
    },
    {
        path:'/pending',
        name:'/pending',
        til:'pending',
        element:lazy(()=>import('../views/pending')),
        hidden:false,
        children:[
            {
                path:'/pending/child',
                til:'매수 미체결',
                element:lazy(()=>import('../views/pending/child')),
                hidden:false,
            },
            {
                path:'/pending/child1',
                til:'매도 미체결',
                element:lazy(()=>import('../views/pending/child1')),
                hidden:false,
            },
            {
                path:'/pending/child2',
                til:'삭제 관리',
                element:lazy(()=>import('../views/pending/child2')),
                hidden:false,
            },
        ]
    },
    {
        path:'/coupon',
        name:'/coupon',
        til:'coupon',
        element:lazy(()=>import('../views/coupon')),
        hidden:false,
    },
    {
        path:'/pay',
        name:'/pay',
        til:'pay',
        element:lazy(()=>import('../views/pay')),
        hidden:true,
    },
    {
        path:'/setting',
        name:'/setting',
        til:'setting',
        element:lazy(()=>import('../views/setting')),
        hidden:false,
    },
    {
        path:'/manage',
        name:'/manage',
        til:'manage',
        element:lazy(()=>import('../views/manage')),
        hidden:false,
        children:[
            {
                path:'/manage/friend',
                til:'친구 관리',
                element:lazy(()=>import('../views/manage/friend')),
                hidden:false,
            },
            {
                path:'/manage/closing',
                til:'포인트 관리',
                element:lazy(()=>import('../views/manage/closing')),
                hidden:false,
            },
            {
                path:'/manage/point',
                til:'정산 관리',
                element:lazy(()=>import('../views/manage/point')),
                hidden:false,
            },
        ]
    },
    {
        path:'*',
        name:'404',
        element:lazy(()=>import('../views/404')),
        hidden:true,
    },
    {
        path:'/login',
        name:'login',
        element:lazy(()=>import('../views/login')),
        hidden:false,
        // children:[
        //     {
        //         path:'/login/toLogin',
        //         til:'toLogin',
        //         element:lazy(()=>import('../views/login/toLogin')),
        //         hidden:false,
        //     },
        //     {
        //         path:'/login/idFind',
        //         til:'idFind',
        //         element:lazy(()=>import('../views/login/idFind')),
        //         hidden:false,
        //     },
        //     {
        //         path:'/login/passFind',
        //         til:'passFind',
        //         element:lazy(()=>import('../views/login/passFind')),
        //         hidden:false,
        //     },
        // ]
    },
]


export default routes